﻿<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
    <!-- 使用 .nav-icon 类向链接添加图标
    使用 font-awesome 或任何其他图标字体库 -->
    <li class="nav-item menu-open">
        <!-- menu-open自动展开 -->
        <a class="nav-link active">
            <i class="nav-icon fas fa-list-alt"></i>
            <p>
                供货管理
                <i class="fas fa-angle-left right"></i>
            </p>
        </a>
        <ul class="nav nav-treeview">
            <li class="nav-item">
                <a class="nav-link" asp-controller="PurchaseOrder" asp-action="Index">
                    <i class="far fa-circle nav-icon"></i>
                    <p>采购订单管理</p>
                </a>
            </li>
            @if (User.IsInRole(Consts.Supplier))
            {
                <li class="nav-item">
                    <a class="nav-link" asp-controller="PurchaseOrder" asp-action="PurchaseOrderDtl">
                        <i class="far fa-circle nav-icon"></i>
                        <p>采购订单明细查询</p>
                    </a>
                </li>
            }
            <li class="nav-item">
                <a class="nav-link" asp-controller="ReturnOrder" asp-action="Index">
                    <i class="far fa-circle nav-icon"></i>
                    <p>回货订单管理</p>
                </a>
            </li>
            @if (User.IsInRole(Consts.Supplier))
            {
                <li class="nav-item">
                    <a class="nav-link" asp-controller="ReturnOrder" asp-action="ReturnOrderDtl">
                        <i class="far fa-circle nav-icon"></i>
                        <p>回货订单明细查询</p>
                    </a>
                </li>
            }
            <li class="nav-item">
                <a class="nav-link" asp-controller="DeliverOrder" asp-action="Index">
                    <i class="far fa-circle nav-icon"></i>
                    <p>计划送货管理</p>
                </a>
            </li>
            @if (User.IsInRole(Consts.Supplier))
            {
                <li class="nav-item">
                    <a class="nav-link" asp-controller="DeliverOrder" asp-action="DeliverDtl">
                        <i class="far fa-circle nav-icon"></i>
                        <p>计划送货明细查询</p>
                    </a>
                </li>
            }
        </ul>
    </li>
    <li class="nav-item">
        <a class="nav-link">
            <i class="nav-icon fas fa-cog"></i>
            <p>
                系统设置
                <i class="fas fa-angle-left right"></i>
            </p>
        </a>
        <ul class="nav nav-treeview">
            <li class="nav-item">
                <a class="nav-link" asp-controller="Account" asp-action="RoleLists">
                    <i class="far fa-circle nav-icon"></i>
                    <p>角色查看</p>
                </a>
            </li>
          @*  @if (User.IsInRole(Consts.Admin))
            {*@
                <li class="nav-item">
                    <a class="nav-link" asp-controller="Account" asp-action="SupplierUserLists">
                        <i class="far fa-circle nav-icon"></i>
                        <p>供应商管理</p>
                    </a>
                </li>
           
            <li class="nav-item">
                <a class="nav-link" asp-controller="Account" asp-action="Validation">
                    <i class="far fa-circle nav-icon"></i>
                    <p>修改密码</p>
                </a>
            </li>
        </ul>
    </li>
</ul>